package com.e.dianshang.service.impl;

import com.e.dianshang.mapper.OrderMapper;
import com.e.dianshang.mapper.TicketMapper;
import com.e.dianshang.service.OrderService;
import com.e.dianshang.service.TicketService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author Tian同學
 * @Date 2020/11/9 19:00
 * @Version 1.0
 */
@Service("ticketService")
public class TicketServiceImpl implements TicketService {

    @Resource
    TicketMapper ticketMapper;

    @Override
    @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.SUPPORTS,rollbackFor = {Throwable.class})
    public List<Map> getTkt(Integer brandId) {
        return ticketMapper.getTkt(brandId);
    }

}
